<?php
class Utility {
	/*
	 * @return number of seconds since $file was last modified
	 */
	public function fileLifetime($file) {
		return (time() - filemtime($file));
	}
	
	public function isWindows() {
		if (strstr(strtolower($_SERVER['SystemRoot']), "windows")) {
			return true;
		}
		return false;
	}
}
?>